﻿
using System;
using System.Collections.Generic;
using System.Text;
using System.Security.Principal;

namespace BOMS.Utility
{
    public class FormsPrincipal : IPrincipal
    {
        private string _userName = string.Empty;
        public FormsPrincipal(string userName)
        {
            _userName = userName;
        }

        #region IPrincipal
        public IIdentity Identity
        {
            get
            {
                return new FormsIdentity(_userName);
            }
        }


        public bool IsInRole(string role)
        {
            return true;
        }

        #endregion
    }
}
